package com.atguigu.eduservice.service.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author He Wentao
 * @since 2022/10/3 20:49
 */
@FeignClient("service-order")
public interface OrderClient {

    // 根据课程 id 和 用户 id 查询是否购买了该课程
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId,
                               @PathVariable("memberId") String memberId);

}
